<template>
  <div>
    <div>
      <h4>认知障碍自评量表</h4>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>认知障碍自评量表(ADB)</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.cognition_obstacle_selfevaluation_radio1" style="width: 100%;">
              <el-radio :label="3">已评</el-radio>
              <el-radio :label="6">未评</el-radio>
              <el-input v-model="pgForm.cognition_obstacle_selfevaluation_input1" placeholder="备注" style="width: 20%"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="5">
          <div>
            <span>判断力 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value1" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="5">
          <div>
            <span>兴趣减少 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value2" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="7">
          <div>
            <span>重复同一件事 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value3" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="7">
          <div>
            <span>使用设备困难 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value4" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="5">
          <div>
            <span>时间定向 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value5" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="4">
          <div>
            <span>理财 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value6" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>忘记约定 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value7" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>记忆和思考 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value8" placeholder="请选择" style="width: 40%;">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="11">
          <span>记录（是）</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.cognition_obstacle_selfevaluation_radio2">
              <el-radio :label="3"> ≥2个 </el-radio>
              <el-radio :label="6"> 是 </el-radio>
              <el-input v-model="pgForm.cognition_obstacle_selfevaluation_input2" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="11">
          <div>
            <span>认知受损程度分级 </span>
            <el-select v-model="pgForm.cognition_obstacle_selfevaluation_value9" placeholder="请选择">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "cognition_obstacle_selfevaluation",
  title: "认知障碍自评量表",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data () {
    return {
      options: [{
        value: '是',
        label: '是'
      }, {
        value: '否',
        label: '否'
      }],
      options1: [{
        value: '提示痴呆',
        label: '提示痴呆'
      }],
      pgForm: {
        cognition_obstacle_selfevaluation_value1: '',
        cognition_obstacle_selfevaluation_value2: '',
        cognition_obstacle_selfevaluation_value3: '',
        cognition_obstacle_selfevaluation_value4: '',
        cognition_obstacle_selfevaluation_value5: '',
        cognition_obstacle_selfevaluation_value6: '',
        cognition_obstacle_selfevaluation_value7: '',
        cognition_obstacle_selfevaluation_value8: '',
        cognition_obstacle_selfevaluation_value9: '',

        cognition_obstacle_selfevaluation_radio1: '',
        cognition_obstacle_selfevaluation_radio2: '',
        cognition_obstacle_selfevaluation_input1: '',
        cognition_obstacle_selfevaluation_input2: '',
      }
    };
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
